import header from '@/router/index/header/header'
import footer from '@/router/index/footer/footer'
import Home from '@/pages/Home'
import personalCentre from '@/router/index/personalCentre/personCentre'
import portal from '@/router/index/portal/portal'
import notice from '@/router/index/portal/notice/notice'
import server from '@/router/index/portal/server/server'
import shop from '@/router/index/portal/shop/shop'
import activity from '@/router/index/portal/activity/activity'

const home = [
  ...header,
  ...footer,
  {
    path: '/',
    name: 'Home',
    component: Home,
    redirect: '/portal',
    meta: {
      requiredAuth: false
    },
    children: [
      ...portal,
      ...personalCentre,
      ...notice,
      ...server,
      ...shop,
      ...activity
    ]
  }
]
export default home
